'use strict';
app.service('fullReductionService',['$q','utilService',function($q,utilService){
    var _this_=this;
    //删除满减活动
    _this_.delete=function($scope){
        var deferred = $q.defer();
        utilService.api({
            url:$scope.app.domain + 'full/reduction/'+$scope.fullReduction.id,
            method:"DELETE"
        }).then(function(result){
            deferred.resolve(result);
        });
        return deferred.promise;
    }
}]);